<?php

namespace app\common\model;

use think\facade\Cache;
use think\Model;

/**
 * 投诉建议
 */
class UserComplaint extends BaseModel
{

    // 表名,不含前缀
    protected $name = 'user_complaint';
    // 自动写入时间戳字段
    protected $autoWriteTimestamp = "datetime";
    // 定义时间戳字段名
    protected $updateTime = false;

    public function user()
    {
        return $this->belongsTo("user", "user_id")->setEagerlyType(0);
    }

    public function getStatusList()
    {
        return [
            [
                "id" => 1,
                "title" => "未查阅"
            ],
            [
                "id" => 2,
                "title" => "已查阅"
            ],
        ];
    }


}
